package com.ruoyi.tester.swagger;

/**
 * @author SongJun
 * @description TODO:
 * @date 2022/5/26 17:08
 */
public class SwaggerParserFactory {
    public static SwaggerParser getInstance(String swaggerVersion, String swaggerJsonDoc){
        SwaggerParser parser = null;
        if(swaggerVersion.startsWith("3")){
            parser = new SwaggerParserV3(swaggerJsonDoc);
        }
        return parser;
    }
}
